#include <iostream>
using namespace std;

#include "list.h"
#include "vector.h"

int main()
{
	//cp::list<int> lt = { 1,2,3,4 };
	//cp::list<int>::iterator it = lt.begin();
	//while (it != lt.end())
	//{
	//	cout << *it << " ";
	//	++it;
	//}
	//cout << endl;

	//cp::list<int>::reverse_iterator rit = lt.rbegin();
	//while (rit != lt.rend())
	//{
	//	cout << *rit << " ";
	//	++rit;
	//}
	//cout << endl;

	cp::vector<int> v = { 10, 20, 30, 40, 50 };
	cp::vector<int>::iterator it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;
	

	cp::vector<int>::reverse_iterator rit = v.rbegin();
	while (rit != v.rend())
	{
		cout << *rit << " ";
		rit++;
	}
	cout << endl;

	return 0;
}